<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>新增用户</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" >

</head>
<body>

<div class="container">

    <h1>新增用户</h1>
    <form action="/user/saveUser" method="post">
        <div class="form-group">
            <label for="username">用户名：</label>
            <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名">
        </div>
        <div class="form-group">
            <label for="password">密码：</label>
            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
        </div>
        <div class="form-group">
            <label for="nickName">昵称：</label>
            <input type="text" class="form-control" id="nickName" name="nickName" placeholder="请输入昵称">
        </div>
        <div class="form-group">
            <label for="phone">电话：</label>
            <input type="text" class="form-control" id="phone" name="phone" placeholder="请输入电话号码">
        </div>
        <div class="form-group">
            <label>性别：</label><br/>
            <input type="radio" value="1" name="gender" checked="checked">男 &nbsp;
            <input type="radio" value="0" name="gender">女
        </div>
        <div class="form-group">
            <label>开通会员吗？</label><br/>
            <input type="radio" value="1" name="isMember" checked="checked">有钱任性，开会员！<br/>
            <input type="radio" value="0" name="isMember">低调奢华，先不开~
        </div>
        <div class="form-group">
            <label for="balance">充值金额：</label>
            <input type="number" class="form-control" id="balance" name="balance" placeholder="请输入金额">
        </div>

        <button type="submit" class="btn btn-default btn-success" onclick="insertUser()">提交</button>
    </form>

</div>


<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="${pageContext.request.contextPath}/static/js/jquery-3.4.1.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>
</body>



</html>
